<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>$.ajax方法基本使用</title>
</head>

<body>
    <button id="btn">发送请求</button>
    <script src="js/jquery.min.js"></script>
    <script>
        $('#btn').on('click', function() {
            // $.get('/base', 'name=zhangsan&age=30', function(response) {
            //     console.log(response);
            // })
            $.post('/base', function(response) {
                console.log(response);
            })
        });
    </script>
</body>

</html>